package com.cskaoyan.service.impl;

import com.cskaoyan.bean.region.vo.ProvinceVO;
import com.cskaoyan.bean.region.vo.RegionListVO;
import com.cskaoyan.mapper.RegionMapper;
import com.cskaoyan.service.RegionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * @author chenai
 * @description TODO
 * @date 2022-06-05 22:11
 */
@Service
public class RegionServiceImpl implements RegionService {
    @Autowired
    RegionMapper regionMapper;
    @Override
    public RegionListVO allRegion() {
        List<ProvinceVO> list = new ArrayList<>();
        list = regionMapper.quaryAllRegion();
        RegionListVO regionListVO = new RegionListVO(31,list,1,1,31);
        return regionListVO;
    }
}
